<h1>Editing product</h1>

<%= error_messages_for :product %>

<% form_for(@product) do |f| %>
  <%= render :partial => 'form',:locals =>{:f => f} %>

  <p>
    <%= f.submit "Save" %>
  </p>
<% end %>
<p/>

<%= link_to 'Back', products_path %>
<p/>


<%= link_to '删除此产品', product_path(@product), :confirm => 'Are you sure?', :method => :delete %>


